import irdict from "./irdict";
import { get } from "../request";

export default new irdict({
  labelKey: "dictLabel",
  valueKey: "dictValue",
  remoteMethod: (dictKey, addDictItme) => {
    get("/api/system/dict/data/type/" + dictKey).then((res) => {
      addDictItme(dictKey, res.data);
    });
  },
});


